# @Author   :   yuanxi
# @Time      :  2022/1/12

from basic.UIParent import UIParent
from basic.utils.asserts import asserts
from commen.page.ann.myPage import myPage
from commen.page.ann.searchPage import searchPage
from commen.page.ann.indexPage import IndexPage
from commen.page.commen.authorizePage import authorizePage
from commen.page.ann.annApplication.benefit_medical_page import BenefitMedicalPage


class BenefitMedicalCase(UIParent):

    @classmethod
    def test_benefit_medical_check(cls):
        '''惠民就医校验'''

        myPage.loginByStatu()
        IndexPage.clickIndex()
        searchPage.searchEvent("惠民就医")
        authorizePage.ifAuthorize()

        status = BenefitMedicalPage.benefit_medical_index()
        asserts.true(status, "惠民就医校验")
